package com.nbsaas.boot.data.rest.convert;

import com.nbsaas.boot.data.data.entity.QuerySnippet;
import com.nbsaas.boot.data.api.domain.response.QuerySnippetResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* -实体对象转化成响应对象
*/

public class QuerySnippetResponseConvert  implements Converter<QuerySnippetResponse,QuerySnippet> {

    @Override
    public QuerySnippetResponse convert(QuerySnippet source) {
        QuerySnippetResponse  result = new  QuerySnippetResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

